/*
 * @Description: 报表路由
 * @Author: Zzt
 * @Date: 2022-11-07 18:20:06
 * @LastEditTime: 2023-01-17 19:07:24
 */
import Layout from '@/layout';
import { lazy } from 'react';
import lazyLoad from '../components/lazyLoad';

export const ReportTemplate = lazy(
  () =>
    import(/* webpackChunkName: "Search" */ '@/view/statistics/ReportTemplate/ReportTemplateMain')
);
export const BasicStatistics = lazy(
  () =>
    import(/* webpackChunkName: "Search" */ '@/view/statistics/BasicStatistics/BasicStatisticsMain')
);
export const FamilyStatistics = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/FamilyStatistics/FamilyStatisticsMain'
    )
);
export const ReportTransfer = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/Transfer/TransferMain')
);
export const ReportReceive = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/Receive/ReceiveMain')
);
export const ReportReceiveCheck = lazy(
  () =>
    import(/* webpackChunkName: "Search" */ '@/view/statistics/AcceptanceCheck/AcceptanceCheckMain')
);
export const ReportRegister = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/Register/RegisterMain')
);
export const formatConversion = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/FormatConversion/FormatConversionMain'
    )
);
// export const SortingCatalog = lazy(
//   () =>
//     import(/* webpackChunkName: "Search" */ '@/view/statistics/SortingCatalog/SortingCatalogMain')
// );
export const NormativeCensus = lazy(
  () =>
    import(/* webpackChunkName: "Search" */ '@/view/statistics/NormativeCensus/NormativeCensusMain')
);
export const QualityInspection = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/QualityInspection/QualityInspectionMain'
    )
);
export const MagneticCarrier = lazy(
  () =>
    import(/* webpackChunkName: "Search" */ '@/view/statistics/MagneticCarrier/MagneticCarrierMain')
);
export const ArchivalEntomophyte = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/ArchivalEntomophyte/ArchivalEntomophyteMain'
    )
);
export const HighPressure = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/HighPressure/HighPressureMain')
);
export const StorageMedium = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/StorageMedium/StorageMediumMain')
);
export const StorageManagement = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/StorageManagement/StorageManagementMain'
    )
);
export const RescueAndProtection = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/RescueAndProtection/RescueAndProtectionMain'
    )
);
export const StatisticsRetrieval = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/Retrieval/RetrievalMain')
);
export const ELending = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/E-lending/ELendingMain')
);
export const SystemConfiguration = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/SystemConfiguration/SystemConfigurationMain'
    )
);
export const UserPermissions = lazy(
  () =>
    import(/* webpackChunkName: "Search" */ '@/view/statistics/UserPermissions/UserPermissionsMain')
);
export const BackupMaintenance = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/BackupAndMaintenance/BackupAndMaintenanceMain'
    )
);
export const IdentificationDisposal = lazy(
  () =>
    import(
      /* webpackChunkName: "Search" */ '@/view/statistics/IdentificationDisposal/IdentificationDisposalMain'
    )
);
export const AnnualReport = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/AnnualReport/AnnualReportMain')
);
export const StatisticsAccount = lazy(
  () => import(/* webpackChunkName: "Search" */ '@/view/statistics/Account/AccountMain')
);
const StatisticsRoutes: any[] = [
  {
    path: '/statistics',
    element: <Layout />,
    meta: {
      title: '统计'
    },
    children: [
      {
        path: 'report-template',
        element: lazyLoad(ReportTemplate),
        meta: {
          title: '报表模板管理'
        }
      },
      {
        path: 'basic-statistics',
        element: lazyLoad(BasicStatistics),
        meta: {
          title: '电子档案统计-基本统计'
        }
      },
      {
        path: 'family-statistics',
        element: lazyLoad(FamilyStatistics),
        meta: {
          title: '电子档案统计-分全宗统计'
        }
      },
      {
        path: 'report-transfer',
        element: lazyLoad(ReportTransfer),
        meta: {
          title: '移交'
        }
      },
      {
        path: 'report-receive',
        element: lazyLoad(ReportReceive),
        meta: {
          title: '接收'
        }
      },
      {
        path: 'report-receiveCheck',
        element: lazyLoad(ReportReceiveCheck),
        meta: {
          title: '电子档案接收检查'
        }
      },
      {
        path: 'report-register',
        element: lazyLoad(ReportRegister),
        meta: {
          title: '登记入库'
        }
      },
      // {
      //   path: 'sorting-catalog',
      //   hidden: true,
      //   element: lazyLoad(SortingCatalog),
      //   meta: {
      //     title: '整理编目'
      //   }
      // },
      {
        path: 'format-conversion',
        element: lazyLoad(formatConversion),
        meta: {
          title: '格式转换'
        }
      },
      {
        path: 'normative-census',
        element: lazyLoad(NormativeCensus),
        meta: {
          title: '规范性检测统计'
        }
      },
      {
        path: 'quality-inspection',
        hidden: true,
        element: lazyLoad(QualityInspection),
        meta: {
          title: '微缩制品质量检测'
        }
      },
      {
        path: 'magnetic-carrier',
        hidden: true,
        element: lazyLoad(MagneticCarrier),
        meta: {
          title: '磁性载体管理与保护'
        }
      },
      {
        path: 'archival-entomophyte',
        hidden: true,
        element: lazyLoad(ArchivalEntomophyte),
        meta: {
          title: '档案虫霉检查记录表'
        }
      },
      {
        path: 'high-pressure',
        hidden: true,
        element: lazyLoad(HighPressure),
        meta: {
          title: '档案馆高压细水雾灭火系统技术规范'
        }
      },
      {
        path: 'storage-medium',
        hidden: true,
        element: lazyLoad(StorageMedium),
        meta: {
          title: '电子档案离线存储介质统计'
        }
      },
      {
        path: 'storage-management',
        hidden: true,
        element: lazyLoad(StorageManagement),
        meta: {
          title: '档案数据硬磁盘离线存储管理'
        }
      },
      {
        path: 'rescue-protection',
        hidden: true,
        element: lazyLoad(RescueAndProtection),
        meta: {
          title: '档案抢救保护大事记'
        }
      },
      {
        path: 'retrieval',
        element: lazyLoad(StatisticsRetrieval),
        meta: {
          title: '检索利用'
        }
      },
      {
        path: 'e-lending',
        element: lazyLoad(ELending),
        meta: {
          title: '电子借阅'
        }
      },
      {
        path: 'system-configuration',
        // hidden: true,
        element: lazyLoad(SystemConfiguration),
        meta: {
          title: '系统配置'
        }
      },
      {
        path: 'user-permissions',
        // hidden: true,
        element: lazyLoad(UserPermissions),
        meta: {
          title: '用户权限'
        }
      },
      {
        path: 'backup-maintenance',
        // hidden: true,
        element: lazyLoad(BackupMaintenance),
        meta: {
          title: '系统备份与恢复'
        }
      },
      {
        path: 'identification-disposal',
        hidden: true,
        element: lazyLoad(IdentificationDisposal),
        meta: {
          title: '自动鉴定与处置'
        }
      },
      {
        path: 'annual-report',
        element: lazyLoad(AnnualReport),
        meta: {
          title: '年报统计'
        }
      },
      {
        path: 'account-report',
        element: lazyLoad(StatisticsAccount),
        meta: {
          title: '台账'
        }
      }
    ]
  }
];
export default StatisticsRoutes;
